package com.wlt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wlt.pojo.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单mapper
 */
public interface OrdersMapper extends BaseMapper<Orders> {
    // 查询订单详情
    Orders findById (String id);
    // 查询用户订单
    List<Orders> findOrderByUserIdAndStatus (@Param("userId") Long userId, @Param("status") Integer status);
}
